package com.wgchao.authmanager.infrastructure.jpa.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * @ClassName: RoleAuthoHandleInfo
 * @author: wgchao
 * @createTime: 2020/5/9 5:15 PM
 * @Description: TODO
 */
@Entity
@Table(name = "am_assign_role_autho_handle", uniqueConstraints =
        {@UniqueConstraint(name = "roleauthohandleIdentify", columnNames = {"roleAuthoId", "handleIdentify"})})
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RoleAuthoHandleInfo {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private Long roleAuthoId;

    private String handleIdentify;

}
